package com.example.springboot_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot_system.pojo.Role;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role>{
    //通过角色名称查询所有的角色信息
    Role findByRole(String description);

    List<Role> findAllRole();

    /*
    Role findByDescription(String roleName);
    */

    List<Role> findByUserIdAndRoleStatus(String userId);
}
